﻿using System;
using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace HRMService
{
    // NOTE: If you change the interface name "IReligion" here, you must also update the reference to "IReligion" in App.config.
    [ServiceContract(Namespace = "http://HRMService")]
    public interface IRewardDiscipline

    {
        [OperationContract]
        DataSet RewardDiscipline_GetAll();

        [OperationContract]
        RewardDisciplineInfo RewardDiscipline_GetInfo(int RDID);

        [OperationContract]
        DataSet RewardDiscipline_GetByKind(string RDKind);

        [OperationContract]
        DataSet RewardDiscipline_GetList(out int ItemCount, int currentPage, int pageSize);

        [OperationContract]
        DataSet RewardDiscipline_GetWithEmployee(int EmployeeID);

        [OperationContract]
        int RewardDiscipline_Insert(RewardDisciplineInfo eInfo);

        [OperationContract]
        bool RewardDiscipline_Update(RewardDisciplineInfo eInfo);

        [OperationContract]
        bool RewardDiscipline_UpdateEmployee(int EmployeeID);

        [OperationContract]
        bool RewardDiscipline_Delete(int RDID);
    }

    [DataContract(Namespace = "http://HRMService")]
    public class RewardDisciplineInfo
    {
        int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        int _EmployeeID;
        [DataMember]
        public int EmployeeID
        {
            get { return _EmployeeID; }
            set { _EmployeeID = value; }
        }
        string _Name;
        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        DateTime _Date;
        [DataMember]
        public DateTime Date
        {
            get { return _Date; }
            set { _Date = value; }
        }
        string _Kind;
        [DataMember]
        public string Kind
        {
            get { return _Kind; }
            set { _Kind = value; }
        }
        string _Description;
        [DataMember]
        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }
    }
}

